import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { FormsModule } from '@angular/forms';
import { AppPaginationModule } from 'app/widgets/pagination/pagination.module';
import { ViewComponent } from './view/view.component';
import { FlowComponent } from './flow/flow.component';
import { SingleComponent } from './single/single.component';
import { HistoryComponent } from './history/history.component';
import { QueryComponent } from './query/query.component';
import { RemindComponent } from './remind/remind.component';
import { InvestService } from "../invest.service";
import { MultiSelectModule } from 'primeng/components/multiselect/multiselect';
import { FlatpickrModule, FLATPICKR } from 'assets/angularx-flatpickr';
import * as flatpickr from 'flatpickr';
import { TableComponent } from './table/table.component';
export function flatpickrFactory() {
    return flatpickr;
}
import { EditComponent } from './edit/edit.component';

@NgModule({
    imports: [
        CommonModule,
        FormsModule,
        MultiSelectModule,
        AppPaginationModule,
        FlatpickrModule.forRoot({
            provide: FLATPICKR,
            useFactory: flatpickrFactory
        })
    ],
    providers: [InvestService],
    declarations: [
        ViewComponent,
        FlowComponent,
        SingleComponent,
        HistoryComponent,
        QueryComponent,
        RemindComponent,
        TableComponent,
        EditComponent
    ],
    entryComponents: [
        ViewComponent,
        FlowComponent,
        SingleComponent,
        HistoryComponent,
        QueryComponent,
        RemindComponent,
        TableComponent,
        EditComponent
    ]
})
export class ModalShareModule { }
